<template>
  <div class="mine">
    <div class="mine_head">
      <span class="mine_head_left"></span>
      <span class="mine_head_middle">我的</span>
      <span class="mine_head_right iconfont icon-liebiao "></span>
    </div>
    <div class="touxiang">
      <img src="../assets/logo.png" alt="">
    </div>
    <div class="mine_cart">
      <span class="mine_cart_span">我的订单</span>
      <div class="mine_cart_block">
        <div class="mine_movie">
          <span class="set_font set_font_1 iconfont icon-dianying1"></span>
          <span class="set_font_con">电影</span>
        </div>
        <div class="shop">
          <span class="set_font set_font_2 iconfont icon-gouwu"></span>
          <span class="set_font_con">商城</span>
        </div>
      </div>
    </div>
        
    <div class="show_cart">
      <van-cell is-link @click="showPopup">展示弹出层</van-cell>
      <van-cell is-link @click="showPopup">折扣卡</van-cell>
      <van-popup v-model="show">
        <div class="prop_content">
          欢迎来到电影页面
        </div>
      </van-popup>
    </div>
    <!-- <h1>这里是我的页面</h1> -->
  </div>
</template>

<script>
export default {
  data() {
      return {
        show: false,
      };
    },
  methods: {
    showPopup() {
        this.show = true;
      },
    },
  }
</script>

<style lang="less" scoped>
  .mine_head{
    display: flex;
    background-color: red;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: space-around;
    &_left{
      width: 10%;
    }
    &_middle{
      width: 60%;
      font-size: 16px;
      color: #fff;
    }
    &_right{
      width: 10%;
      color: #fff;
      font-size: 18px;
    }
  }
  .touxiang{
    width: 100%;
    height: 150px;
    background-color: rgb(252, 44, 44);
    display: flex;
    align-items: center;
    justify-content: center;
    img{
      display: block;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background-color: #fff;
    }
  }
  .mine_cart{
    width: 100%;
    height: 100px;
    background-color: #fff;
    margin-top: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    padding:10px 0;
    &_span{
      font-size: 14px;
      padding: 6px 0;
      font-weight: 600;
    }
    .mine_cart_block{
      margin-top: 8px;
      width: 100%;
      display: flex;
      div{
        width: 50%;

      }
    }
  }
  .set_font{
    display: block;
    font-size: 32px;
    &_1{
      color:rgb(233, 107, 97);
      margin-bottom: 6px;
    }
    &_2{
      color: rgb(111, 210, 192);
      margin-bottom: 6px;
    }
  }
  .set_font_con{
    font-size: 14px;
    font-weight: 600;
  }

  .prop_content{
    width: 300px;
    height: 300px;
    text-align: center;
    line-height: 300px;
  }

  .show_cart{
    margin-top: 20px;
  }
</style>